package c.x.jy.dao.dto;

import c.x.jy.common.annotation.SetValue;

import c.x.jy.dao.entity.OrderAwnserEntity;
import lombok.Data;

import java.util.List;

@Data
public class OrderAwnserEntityDto extends OrderAwnserEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT nickname FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String memberNickname;

	@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT headimgurl FROM `t_member` WHERE id=,#memberId", vType = String.class)
	private String memberHeadimgurl;

	@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT nickname FROM `t_teacher` WHERE id=,#teacherId", vType = String.class)
	private String teacherName;


	@SetValue(beanName = "commonService", method = "selectData", parameter = "SELECT headimgurl FROM `t_member` m left join `t_teacher` t on m.id=t.member_id  WHERE t.id=,#teacherId", vType = String.class)
	private String teacherHeadimgurl;

}
